import Relation from "castle-koa/dist/lib/relation";
import { R }from 'castle-koa/dist/utils/db'
//文章
/**,
   //文章ID ARID BIGINT ,
   //NavID NAID BIGINT ,
   //用户ID UID BIGINT ,
   //文章标题 Tile CHAR(250) ,
   //简略标题 SimpleTile CHAR(250) ,
   //关键字 KeyWords CHAR(250) ,
   //内容摘要 Abstract TEXT ,
   //发布时间 CTime TIMESTAMP ,
   //文章来源 Source CHAR(50) ,
   //发布状态 PubishedStatus TINYINT(1) ,
   //审核状态 ExamineStatus TINYINT(1) ,
   */
export default class Artical extends Relation{
    _one={
        ArticalContent:{
            name:'ArticalContent',
            table:'ArticalContent',
            pk:'ARID',
            fk:'ARID'
        },
        User:{
            name:'User',
            table:'User',
            pk:'UID',
            fk:'UID'
        },
        Examiner:{
            name:"Examiner",
            table:"User",
            pk:"ExamineStatus",
            fk:"UID"
        }
    }
}
